#include "stdio.h"
#include "time.h"
#include "windows.h"
#include "process.h"
#if 0
int main()
{
	time_t first, second;

	first = time(NULL);
	Sleep(2000);
	second = time(NULL);
	printf("difftime = %f second\n", difftime(first, second));
	system("pause");
	return (0);

}
#endif

#if 0
int main()
{
	time_t biggest = 0x7FFFFFFFF;

	printf("biggest time is %s\n", ctime(&biggest));
	system("pause");
	return (0);
}
#endif

#if 0
int main()
{
	time_t t;
	struct tm *gmt, *local;
	
	t = time(NULL);

	local = localtime(&t);
	printf("%s\n", ctime(&t));
	printf("%s\n", asctime(local));

	gmt = gmtime(&t);
	printf("%s\n", asctime(gmt));

	system("pause");
	return (0);
}

#endif

#if 0
int main()
{
	time_t max = 0x7FFFFFFF;

	printf("Biggest Time is :%s\n", asctime(gmtime(&max)));
	system("pause");
	return (0);
}
#endif

#if 0
typedef struct
{
	int		x;
	int		y;
}TEST_STR;
int main()
{
	TEST_STR test, * pTest;
	
	int temp = 1024;
	int * p;

	pTest = &test;
	test.x = 1;
	test.y = 2;

	printf("%d\n", (*pTest).x);
	printf("%d\n", *pTest->x);
	system("pause");
	return (0);
}
#endif

#if 0
struct STR_TEST
{
	int a[100];
};

struct STR_TEST STR_Init(struct STR_TEST test)
{
	int i = 0;

	for (i=0; i<100; i++)
	{
		test.a[i] = i;
	}
	return test;
}

void STR_Print(struct STR_TEST test)
{
	int i = 0;

	for (i=0; i<100; i++)
	{
		if (((i%10) == 0) && (i != 0))
		{
			printf("\n");
		}
		printf("%02d ", test.a[i]);
	}
	printf("\n");
}

int main()
{
	struct STR_TEST str1 = {0};
	struct STR_TEST str2 = {0};

	str2 = STR_Init(str1);
	STR_Print(str1);
	printf("\n");
	STR_Print(str2);
	system("pause");
	return (0);
}
#endif

#if 1
int main()
{

	system("pause");
	return (0);
}
#endif